﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

using FileConvertPdfSystemModel;
using FileConvertPdfSystemDAL;

namespace FileConvertPdfSystemBLL
{
    public class LoginUserConvertpdfQueueBLL
    {
        public int Add_LoginUserConvertpdfQueue(LoginUserConvertpdfQueue LoginUserFileQueue)
        {
            FileConvertPdfSystemDAL.LoginUserConvertpdfQueue1 LoginDAL = new FileConvertPdfSystemDAL.LoginUserConvertpdfQueue1();
            return (LoginDAL.Add_LoginUserConverPdfQueue(LoginUserFileQueue));
        }
        public void Update_LoginUserConvertpdfQueue(LoginUserConvertpdfQueue LoginUserFileQueue)
        {
            FileConvertPdfSystemDAL.LoginUserConvertpdfQueue1 LoginDAL = new FileConvertPdfSystemDAL.LoginUserConvertpdfQueue1();
            LoginDAL.Update_LoginUserConverPdfQueue(LoginUserFileQueue);
        }
        public void Delete_LoginUserConvertpdfQueue(int nID)
        {
            FileConvertPdfSystemDAL.LoginUserConvertpdfQueue1 LoginDAL = new FileConvertPdfSystemDAL.LoginUserConvertpdfQueue1();
            LoginDAL.Delete_LoginUserConverPdfQueue(nID);
        }
        public List<LoginUserConvertpdfQueue> LoginUserConvertpdfQueue()
        {
            FileConvertPdfSystemDAL.LoginUserConvertpdfQueue1 LoginDAL = new FileConvertPdfSystemDAL.LoginUserConvertpdfQueue1();
            return LoginDAL.Get_LoginUserConvertpdfQueue();
        }
        public int Get_LoginUserConvertpdfQueueNum()
        {
            LoginUserConvertpdfQueue1 LoginDAL = new LoginUserConvertpdfQueue1();
            return (LoginDAL.Get_LoginUserConvertpdfQueueNum());
        }

        public DataSet Get_File()
        {
            LoginUserConvertpdfQueue1 LoginDal = new LoginUserConvertpdfQueue1();
            return LoginDal.Get_LoginUserConvertpdfQueueRank();
        }

    }
}
